
import { Component } from "react";
import VisitingAllHeader from "../../components/AllVisitingSearch";
import VisitingRecord from "../../components/VisitingRecord";
class VisitingAll extends Component {
    constructor(props) {
        super(props);
        this.state = { 
            data:null
        }
    }
    getSearchData(data){
        this.setState({ data });
    }
    render() {  
        return (<div className='VisitingAll_box'>
            <VisitingAllHeader getSearchData={(data)=>this.getSearchData(data)}/>     
            
            <VisitingRecord data={this.state.data} id="csc"/>       
        </div>);
    }
}
 
export default VisitingAll;